<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);

class preson_model extends model {
    public function __construct() {
        $this->db_config = pc_base::load_config('database');
        $this->db_setting = 'default';
        $this->table_name = 'teacher';
        parent::__construct();
    }

    public static function getmany($ids) {
        if ($ids) {
            $sql = "id in ($ids)";
            $res = (new self)->select($sql, '*', '', "find_in_set(id,'$ids')");
        } else {
            $res = [];
        }
        return $res;
    }
}